<?php
$page_title="Manage Internal Programs & Events - List";
	include("includes/header.php");
?>
<?
$query="select * from bkitc_programs where rec_status>=1 ";
$prgInfo=qry_data($query);
?>
	<div class="fleft">
		<ul class="subMenu">
		<li><a href="edit_prg.php?mode=add" >Add New Program</a></li>
		<!--<li style="border:0px solid;width:130px;"><a href="prg_mem_reg_list.php" >Invite Members </a></li>-->
		</ul>
		</div>		
		<div class="cleardiv">
		
		</div>
<table width="100%" >
	<tr>
	<td valign="top">
		
	<table   class="table_panel" width="100%"  cellspacing="0" cellpadding="4">
	<tr  align="left">
	<th width="5">S.No</th>

	<th style="width:120px">Title</th>

	<th >Prg Date</th>
	<th >Last Updated</th>
	<th >Registrants</th>
	<th >Edit/Delete</th>
	</tr>
	<? foreach($prgInfo as $i=>$prgs) {?>

	<tr <?if($i%2==0) echo 'class="white_bg"'; else echo 'class="grey_bg"' ?>>
	<td><?=$i+1;?></td>
	
	<td ><?=$prgs["prg_title"];?></td>
	
	
	<td><?=$prgs["prg_date"];?></td>
	
	<td><?=$prgs["last_updated"];?></td>
		
	<td><a href="edit_event_inv.php?mode=edit&prg_id=<?=$prgs["prg_id"]?>">View Invitation and Member</a></td>
	<td>
		<a href="edit_prg.php?mode=edit&prg_id=<?=$prgs["prg_id"];?>">Edit</a> | 
		<a  href="javascript:if(confirm('Are you sure to delete this Program / Event?')) location.href='edit_prg.php?mode=del&prg_id=<?=$prgs["prg_id"];?>'";>Delete</a> 
	</td>
	</tr>
	
	<? } ?>
	</table>
	
	</td>
	</tr>
	
	</table>

<?php include("includes/footer.php"); ?>

